package gestorchat;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Víctor
 */
public class VentanaPpal extends javax.swing.JFrame {

    /**
     * Creates new form VentanaPpal
     */
    public VentanaPpal() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        loginDialog = new javax.swing.JDialog();
        labelLogin = new javax.swing.JLabel();
        tfLogin = new javax.swing.JTextField();
        btLogin = new javax.swing.JButton();
        rbtnMembersGroup = new javax.swing.ButtonGroup();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextPane1 = new javax.swing.JTextPane();
        barraEstado = new javax.swing.JPanel();
        leftPanel = new javax.swing.JScrollPane();
        memberChatPanel = new javax.swing.JPanel();
        rbtnMember = new javax.swing.JRadioButton();
        rbtnMemberDyn = new javax.swing.JRadioButton();
        barraMenu = new javax.swing.JMenuBar();
        menuChat = new javax.swing.JMenu();
        bmConectarChat = new javax.swing.JMenuItem();
        bmDesconectarChat = new javax.swing.JMenuItem();

        loginDialog.setTitle("Login");
        loginDialog.setResizable(false);

        labelLogin.setText("Introduzca Usuario");

        tfLogin.setText("Introduce tu nombre");

        btLogin.setText("Conectar");

        javax.swing.GroupLayout loginDialogLayout = new javax.swing.GroupLayout(loginDialog.getContentPane());
        loginDialog.getContentPane().setLayout(loginDialogLayout);
        loginDialogLayout.setHorizontalGroup(
            loginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(loginDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(loginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btLogin)
                    .addGroup(loginDialogLayout.createSequentialGroup()
                        .addComponent(labelLogin)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(tfLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(71, Short.MAX_VALUE))
        );
        loginDialogLayout.setVerticalGroup(
            loginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(loginDialogLayout.createSequentialGroup()
                .addGap(60, 60, 60)
                .addGroup(loginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelLogin)
                    .addComponent(tfLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btLogin)
                .addContainerGap(117, Short.MAX_VALUE))
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jScrollPane1.setMinimumSize(new java.awt.Dimension(200, 200));
        jScrollPane1.setPreferredSize(new java.awt.Dimension(200, 200));

        jTextPane1.setMinimumSize(new java.awt.Dimension(200, 200));
        jTextPane1.setPreferredSize(new java.awt.Dimension(200, 200));
        jScrollPane1.setViewportView(jTextPane1);

        getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);

        barraEstado.setMinimumSize(new java.awt.Dimension(400, 30));
        barraEstado.setPreferredSize(new java.awt.Dimension(400, 20));
        barraEstado.setLayout(new javax.swing.BoxLayout(barraEstado, javax.swing.BoxLayout.LINE_AXIS));
        getContentPane().add(barraEstado, java.awt.BorderLayout.PAGE_END);

        leftPanel.setMinimumSize(new java.awt.Dimension(150, 400));
        leftPanel.setPreferredSize(new java.awt.Dimension(120, 400));

        memberChatPanel.setMaximumSize(new java.awt.Dimension(100, 100));
        memberChatPanel.setPreferredSize(new java.awt.Dimension(100, 100));
        memberChatPanel.setLayout(new javax.swing.BoxLayout(memberChatPanel, javax.swing.BoxLayout.Y_AXIS));

        rbtnMembersGroup.add(rbtnMember);
        rbtnMember.setText("Todos");
        memberChatPanel.add(rbtnMember);

        rbtnMembersGroup.add(rbtnMemberDyn);
        rbtnMemberDyn.setText("Víctor");
        memberChatPanel.add(rbtnMemberDyn);

        leftPanel.setViewportView(memberChatPanel);

        getContentPane().add(leftPanel, java.awt.BorderLayout.LINE_START);

        menuChat.setText("Chat");

        bmConectarChat.setText("Conectar");
        bmConectarChat.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bmConectarChatActionPerformed(evt);
            }
        });
        menuChat.add(bmConectarChat);

        bmDesconectarChat.setText("Desconectar");
        bmDesconectarChat.setEnabled(false);
        menuChat.add(bmDesconectarChat);

        barraMenu.add(menuChat);

        setJMenuBar(barraMenu);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void bmConectarChatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bmConectarChatActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_bmConectarChatActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(VentanaPpal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(VentanaPpal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(VentanaPpal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(VentanaPpal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VentanaPpal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel barraEstado;
    private javax.swing.JMenuBar barraMenu;
    private javax.swing.JMenuItem bmConectarChat;
    private javax.swing.JMenuItem bmDesconectarChat;
    private javax.swing.JButton btLogin;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextPane jTextPane1;
    private javax.swing.JLabel labelLogin;
    private javax.swing.JScrollPane leftPanel;
    private javax.swing.JDialog loginDialog;
    private javax.swing.JPanel memberChatPanel;
    private javax.swing.JMenu menuChat;
    private javax.swing.JRadioButton rbtnMember;
    private javax.swing.JRadioButton rbtnMemberDyn;
    private javax.swing.ButtonGroup rbtnMembersGroup;
    private javax.swing.JTextField tfLogin;
    // End of variables declaration//GEN-END:variables
}
